STEP 4: We'll use some stage physics to create movement for our characters!

The .set_gravity() command makes objects on the stage fall. The number in the command controls how quickly objects will fall. .disable_all_walls() lets objects leave the stage instead of bouncing off of the sides.

  • In GRAPHICS, click on . Drag out Set Gravity. Change the integer to 6.
  • From , drag Disable Walls into your program.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)